import request from "@/utils/request";

// 查询技术指标图鉴列表
export function listBiQualification(query) {
  return request({
    url: "/sycs/biQualification/list",
    method: "get",
    params: query
  });
}

// 查询技术指标图鉴详细
export function getBiQualification(qualId) {
  return request({
    url: "/sycs/biQualification/" + qualId,
    method: "get"
  });
}

// 新增技术指标图鉴
export function addBiQualification(data) {
  return request({
    url: "/sycs/biQualification",
    method: "post",
    data: data
  });
}

// 修改技术指标图鉴
export function updateBiQualification(data) {
  return request({
    url: "/sycs/biQualification",
    method: "put",
    data: data
  });
}

// 删除技术指标图鉴
export function delBiQualification(qualId) {
  return request({
    url: "/sycs/biQualification/" + qualId,
    method: "delete"
  });
}

// 查询试验类型树
export function syTpyeTree(data) {
  return request({
    url: "/base/syType/syTpyeTreeBig",
    method: "get",
    params: data
  });
}
// 计算检测项目结果
export function computeBiQualification(data) {
  return request({
    url: "/sycs/biQualification/compute",
    method: "post",
    data: data,
    notInterval: true
  });
}
